/*
 * @Author: qiuziz
 * @Date: 2017-08-15 10:42:39
 * */

import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import reducers from '../reducers';

//redux-thunk创建实例
const createStoreWithMiddleware = applyMiddleware(thunkMiddleware)(createStore);

//建立actions和reducers的关系
const store = createStoreWithMiddleware(reducers);

export default store;

